package org.example.minsuapi.controller;

import org.example.minsuapi.pojo.fav_name;
import org.example.minsuapi.service.favnameService;
import org.example.minsuapi.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class favnameController {
    @Autowired
    private favnameService favnameService;
    @GetMapping("/queryAllfavname")
    public ResponseResult<List<fav_name>> queryAllfavname(){
        List<fav_name>pf =favnameService.queryAllfavname();
        return new ResponseResult<>("200","查询成功",pf);
    }
}
